package com.moyu.myadmin.model.convert;

import com.moyu.myadmin.dao.entity.EmpLeaveEntity;
import com.moyu.myadmin.model.dto.EmpLeaveDTO;
import com.moyu.myadmin.model.vo.EmpLeaveVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 员工请假
 * 
 * @email jiaomingyu5778@gmail.com
 * @date 2022-02-25 15:09:13
 */
@Mapper
public interface EmpLeaveConvert {

	EmpLeaveConvert INSTANCE = Mappers.getMapper(EmpLeaveConvert.class);

	EmpLeaveVO toVO(EmpLeaveEntity source);

	List<EmpLeaveVO> toVoList(List<EmpLeaveEntity> listSource);

	EmpLeaveDTO toDTO(EmpLeaveEntity source);

	List<EmpLeaveDTO> toDtoList(List<EmpLeaveEntity> listSource);

	EmpLeaveEntity toToEntity(EmpLeaveVO source);

	List<EmpLeaveEntity> voEntityList(List<EmpLeaveVO> listSource);

	EmpLeaveEntity dtoToEntity(EmpLeaveDTO source);

	List<EmpLeaveEntity> dtoEntityList(List<EmpLeaveDTO> listSource);

}
